/**
 * Created by gaocai on 16/9/19.
 */

import * as types from '../action/actionTypes';

const initialState = {
    userInfo: []
};

export default function userReducer(state = initialState, action) {
    switch (action.type) {
        case types.USER_LIST:
            return Object.assign({}, state, {
                userInfo: action.userInfo
            });
            break;
        default:
            return state;
    }

}

